package com.zhao.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhao.entity.EduCourse;
import com.zhao.entity.EduTeacher;
import com.zhao.entity.To.CourseTo;
import com.zhao.entity.Vo.CourseVo;
import com.zhao.entity.Vo.TeacherQuery;
import javafx.scene.control.Pagination;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author xiaozhao
 * @since 2021-07-26
 */
@Mapper
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    CourseVo findAll(String id);

    int publicCousrByCourseId(String id);

    Page<CourseTo> getAllCourseInfo(Page page,@Param("teacherQuery") TeacherQuery teacherQuery);

}
